//
//  ICEPageViewController.h
//  ICEViewPrototype
//
//  Created by Aurélien Ammeloot on 23/07/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ICEStory;


@interface ICEPageViewController : UIViewController {

	// IB Outlets
	IBOutlet UIScrollView *_scrollView;
	IBOutlet UIPageControl *_pageControl;
	
	// Will contain UIWebViews
	NSMutableArray *_pages;
	NSMutableArray *_alredayLoaded;
	
	NSInteger _pageNumber;
	
	// Flag used for interaction
	BOOL _pageControlUsed;
	
	ICEStory *_story;
	
	UIViewController *_detailViewController;
}

- (IBAction)pageControlDidChange:(id)sender;
- (void)updateOrientation;

@property(nonatomic, retain) ICEStory *story;
@property(assign) UIViewController *detailViewController;

@end

